package org.phalanx.server.user;

import java.sql.Timestamp;
import java.util.NoSuchElementException;
import java.util.StringTokenizer;

import org.phalanx.server.ServerCache.Cacheable;

public class PhalanxUser implements Cacheable {
	private Integer Id;
	private Timestamp lastLogin;
	private Timestamp createDate;
	private String password;
	private String userName;
	
	public Timestamp getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(Long lastLogin) {
		this.lastLogin = new Timestamp(lastLogin);
	}

	public Timestamp getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Long createDate) {
		this.createDate = new Timestamp(createDate);
	}

	@Override
	public Integer getId() {
		// TODO Auto-generated method stub
		return Id;
	}

	@Override
	public void setId(Integer id) {
		this.Id = id;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserName() {
		return userName;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword() {
		return password;
	}
}
